package com.jblog.core.model.blog.archive;

import java.util.List;

/**
 * PostCalendarArchive.java
 * 
 * create at 08/29/2011 09:59:16
 *
 */
public class PostCalendarArchive implements java.io.Serializable {

    private static final long serialVersionUID = 1L;
    
    private String year;
    private String month;
    private Long posts;
    private List<PostCalendarArchive> archives;
    
    public PostCalendarArchive() {
    }

    public PostCalendarArchive(String year) {
        this.year = year;
    }

    public PostCalendarArchive(String year, String month) {
        super();
        this.year = year;
        this.month = month;
    }

    public PostCalendarArchive(String year, List<PostCalendarArchive> archives) {
        this.year = year;
        this.archives = archives;
    }


    public String getYear() {
        return year;
    }

    public void setYear(String year) {
        this.year = year;
    }

    public void setMonth(String month) {
        this.month = month;
    }

    public String getMonth() {
        return month;
    }

    public Long getPosts() {
        return posts;
    }

    public void setPosts(Long posts) {
        this.posts = posts;
    }

    public List<PostCalendarArchive> getArchives() {
        return archives;
    }

    public void setArchives(List<PostCalendarArchive> archives) {
        this.archives = archives;
    }

    @Override
    public String toString() {
        return "PostCalendarArchive [year=" + year + ", month=" + month + ", posts=" + posts + "]";
    }

}
